﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Niknak.Social.Twitter;

namespace Demo.Business
{
    public class TwitterMedia : IMedia
    {
        public string MediaId { get; set; }

        public string DisplayUrl { get; set; }

        public string ExpandedUrl { get; set; }

        public string MediaType { get; set; }

        public string MediaUrl { get; set; }

        public string MediaUrlHttps { get; set; }

        private TwitterMediaSize[] _Sizes { get; set; }
        public IMediaSize[] Sizes
        {
            get { return _Sizes; }
            set 
            {
                _Sizes = null;
                if (value != null && value.Any())
                    _Sizes = value.Cast<TwitterMediaSize>().ToArray();
            }
        }

        public string Url { get; set; }

        public DateTime CreatedAt { get; set; }

        public int[] Indices { get; set; }
    }
}
